<%@ page import="java.util.List" %>
<%@ page import="com.daye.homework.bean.Student" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/3/11
  Time: 22:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>所有学生</title>
</head>
<body>

<table>
    <%
        List<Student> studentList = (List<Student>) request.getAttribute("studentList");
        for (Student student : studentList) {
    %>

    <tr>
        <td>学号:<%= student.getStudentNum()%></td>
        <td>姓名:<%= student.getName()%></td>
        <td>性别:<%= student.getSex()%></td>
        <td>生日:<%= student.getBirthday()%></td>
        <td>邮箱:<%= student.getEmail()%></td>
        <td>备注:<%= student.getDesc()%></td>
        <td><a href="removeStudent?id=<%= student.getId()%>">删除学员</a></td>
        <td><a href="updateStudent?id=<%= student.getId()%>">修改学员信息</a></td>

    </tr>

    <%
        }
    %>
</table>
<a href="managerPage.jsp">返回主页</a>

</body>
</html>
